<?=View::factory('header')?>

<div id="item-detail">
    <div class="item-image">
        <img src="<?=URL::image($item['image_md5'], 'c450x450', 'item')?>" width="450" alt="<?=$item['title']?>" />
    </div>

    <div class="item-info">
        <h1 class="title"><?=$item['title']?></h1>
        <div class="summary"><?=$item['summary']?></div>
        <div class="labels">
            <? if ($item['spec']): ?><span><?=$item['spec']?></span><? endif; ?>
            <? if ($item['attributes']): ?>
                <? foreach (explode(',', $item['attributes']) as $attr): ?>
                    <span><?=$attr?></span>
                <? endforeach; ?>
            <? endif; ?>
            <? if ($item['skins']): ?><span><?=$item['skins']?></span><? endif; ?>
        </div>
    </div>

    <div class="item-intro">
        <h2 class="title">产品特征</h2>
        <div class="body"><?=$item['intro']?></div>
    </div>

    <? if ($item['usage']): ?>
    <div class="item-intro">
        <h2 class="title">使用方法</h2>
        <div class="body"><?=$item['usage']?></div>
    </div>
    <? endif; ?>

    <div class="clearfix"></div>
</div>

<?=View::factory('footer')?>